public class MaxOverload {
    public static void Max(int x,int y) {
        System.out.println(Math.max(x, y));
    }

    public static void Max(float x, float y, float z) {
        System.out.println(Math.max(x, Math.max(y, z)));
    }

    public static void main(String[] args) {
        int x = 2;
        int y = 1;
        float a = 2.3F;
        float b = 1.5F;
        float c = 2.7F;

        Max(x, y);
        Max(a, b, c);
    }
}
